package com.example.demo.entity;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.example.demo.entity.result.MethodRatio;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@TableName("acm_method")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class AcmMethod implements Comparable<AcmMethod>{
    @TableId(type = IdType.AUTO)
    private Integer id;
    private String tId;
    private String title;
    private String level;
    private Double passRatio;
    private String method;

    @Override
    public int compareTo(AcmMethod o) {
        return this.getPassRatio().compareTo(o.getPassRatio());
    }

}
